package com.stylefeng.guns.rest.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.Version;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 红包评论表
 * </p>
 *
 * @author ruiyifeng123
 * @since 2018-07-09
 */
@TableName("wz_redpacket_comment")
public class WzRedpacketComment extends Model<WzRedpacketComment> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "redpacket_comment_id", type = IdType.AUTO)
    private Long redpacketCommentId;
    @TableField("adv_id")
    private Long advId;
    /**
     * 用户编号
     */
    @TableField("user_code")
    private Long userCode;
    /**
     * 回复对象用户编号
     */
    @TableField("reply_user_code")
    private Long replyUserCode;
    /**
     * 内容
     */
    private String content;
    /**
     * 回复内容
     */
    @TableField("reply_content")
    private String replyContent;
    /**
     * 类型：普通评论
     */
    private Integer type;
    /**
     * 昵称
     */
    @TableField("nick_name")
    private String nickName;
    /**
     * 头像
     */
    @TableField("avatar_url")
    private String avatarUrl;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 喜欢数量
     */
    @TableField("like_number")
    private Integer likeNumber;
    /**
     * 是否喜欢：0-不喜欢；1-喜欢
     */
    @TableField("is_like")
    private Integer isLike;
    /**
     * 状态:1-正常;2-举报中；
     */
    private Integer status;
    /**
     * 是否有对话列表
     */
    @TableField("has_user_comment")
    private Integer hasUserComment;

    @Version
    private Integer version;


    public Long getRedpacketCommentId() {
        return redpacketCommentId;
    }

    public void setRedpacketCommentId(Long redpacketCommentId) {
        this.redpacketCommentId = redpacketCommentId;
    }

    public Long getAdvId() {
        return advId;
    }

    public void setAdvId(Long advId) {
        this.advId = advId;
    }

    public Long getUserCode() {
        return userCode;
    }

    public void setUserCode(Long userCode) {
        this.userCode = userCode;
    }

    public Long getReplyUserCode() {
        return replyUserCode;
    }

    public void setReplyUserCode(Long replyUserCode) {
        this.replyUserCode = replyUserCode;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getReplyContent() {
        return replyContent;
    }

    public void setReplyContent(String replyContent) {
        this.replyContent = replyContent;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getAvatarUrl() {
        return avatarUrl;
    }

    public void setAvatarUrl(String avatarUrl) {
        this.avatarUrl = avatarUrl;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getLikeNumber() {
        return likeNumber;
    }

    public void setLikeNumber(Integer likeNumber) {
        this.likeNumber = likeNumber;
    }

    public Integer getIsLike() {
        return isLike;
    }

    public void setIsLike(Integer isLike) {
        this.isLike = isLike;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getHasUserComment() {
        return hasUserComment;
    }

    public void setHasUserComment(Integer hasUserComment) {
        this.hasUserComment = hasUserComment;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    @Override
    protected Serializable pkVal() {
        return this.redpacketCommentId;
    }

    @Override
    public String toString() {
        return "WzRedpacketComment{" +
        "redpacketCommentId=" + redpacketCommentId +
        ", advId=" + advId +
        ", userCode=" + userCode +
        ", replyUserCode=" + replyUserCode +
        ", content=" + content +
        ", replyContent=" + replyContent +
        ", type=" + type +
        ", nickName=" + nickName +
        ", avatarUrl=" + avatarUrl +
        ", createTime=" + createTime +
        ", likeNumber=" + likeNumber +
        ", isLike=" + isLike +
        ", status=" + status +
        ", hasUserComment=" + hasUserComment +
        ", version=" + version +
        "}";
    }
}
